﻿using System;
using System.Web.Mvc;
using Diploma.Models;

namespace DiplomaWeb.Controllers
{
    [Authorize]
    public class PasswordsController : MasterController
    {
        public PasswordsController(DataManager dataManager) : base(dataManager)
        {
        }

        public ActionResult Generate(Guid id)
        {
            User user = DataManager.UsersRepository.GeneratePassword(id);
            return PartialView("~/Views/Password/PasswordControl.ascx", user);
        }
    }
}